<?php

namespace Phoo\db;

abstract class Property {
	protected $value = null;
	protected $required = false;
	
	public function __construct($options = array()) {
		foreach($options as $name => $option){
			if($name == "default")
				$this->value = $option;
			else if($name == "required")
				$this->required = $option;
		}
	}
	
	public function getValue(){
		return $this->value;
	}
	
	public function setValue($value){
		$this->value = $value;
	}
	
	public function isRequired(){
		return $this->required;
	}
}